import Api from 'api';

class WebApi {
    querySortGoods = (param = {}) => Api({
        url: 'goods/queryProductSort',
        method: 'POST',
        body: Object.assign({}, param)});


    setGoodsSort = (param = {}) => Api({
        url: 'goods/setItemSort',
        method: 'POST',
        body: Object.assign({}, param)
    });

    delSortGoods = (param = {})=>Api({
        url: 'goods/delItemSort',
        method: 'POST',
        body: Object.assign({}, param)
    });


    getGoodsDisplay = ()=>Api({
        url: 'func/b2c_goods_display',
        method: 'GET'
    })
}

export default new WebApi();